window.onload = window.onresize = function () {
    document.documentElement.style.fontSize = window.innerWidth / 320 * 10 + "px";
};